@charset "UTF-8";
/* .zen-maru-gothic-medium {
    font-family: "Zen Maru Gothic", serif;
  }
  .yusei-magic-regular {
    font-family: "Yusei Magic", serif;
  }
  .kanit-regular {
    font-family: "Kanit", serif;
  } */
/* header */
body {
    background-color: whitesmoke;
}

header {
    padding: 20px 80px;

    text-align: center;
}

.nav-list {
display: flex;
justify-content: center;
text-decoration: underline;
color: #d64161;

}
.nav-nav {
    font-family: "Yusei Magic", serif;
    font-weight: 400;
    font-size: 24px;
    letter-spacing: 1em;
}
.submenu-a {
    font-family: "Kanit", serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.4em;
    line-height: 2;
}
.submenu-b {
    font-family: "Kanit", serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.4em;
    line-height: 2;
}

.g-nav ul {
    display: flex;
    gap: 30px;
}

.g-nav .nav-list {
    overflow: visible;
}

.g-nav .nav-list>li {
    position: relative;
    overflow: visible;
}

.g-nav .nav-list .submenu-a {
    position: absolute;
    min-width: 100%;
    display: none;
    z-index: 9999;
}

.g-nav .nav-list li:hover .submenu-a {
    display: block;
}

.g-nav .nav-list .submenu-a li {
    border-top: 1px solid var(--gnav-bd);
}

/*  */
.g-nav .nav-list .submenu-b {
    position: absolute;
    min-width: 100%;
    display: none;
    z-index: 9999;
}

.g-nav .nav-list li:hover .submenu-b {
    display: block;
}

.g-nav .nav-list .submenu-b li {
    border-top: 1px solid var(--gnav-bd);
}

a {
    color: crimson;
    transition: 0.6s;

}
a:hover {
    color: hsl(300, 30%, 15%);
}
/*main*/
h1 {
    font-family: "Yusei Magic", serif;
    font-weight: 700;
    font-size: 36px;
    letter-spacing: 5px;
    line-height: 2em;    
}
p {
    font-family: "Zen Maru Gothic", serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
}

section {
    padding: 20px 80px;
}

h2 {
    font-size: 36px;
    letter-spacing: 1.4px;
    padding-bottom: 20px;
}


.work-title {
    font-family: "Yusei Magic", serif;
    font-weight: 400;
    display: inline-block;
    padding: 0.2em 0.5em;
    margin: 2em 0;
    color: #565656;
    background: #c6e5d9;
    box-shadow: 0px 0px 0px 10px #c6e5d9;
    border: dashed 2px #ffc3c3;
    border-radius: 8px;
}

.work-title p {
    margin: 0;
    padding: 0;
}

.pop:hover {
    box-shadow: 0px 5px 5px #ff7d00;
    transform: translate(0, -5px);
}
.work-reed {
    font-family: "Zen Maru Gothic", serif;
    font-weight: 400;
    display: inline-block;
    padding: 0.2em 0.5em;
    margin: 2em 0;
    color: #565656;
    background: #ffeaea;
    box-shadow: 0px 0px 0px 10px #c6e5d9;
    border: dashed 2px #ffc3c3;
    border-radius: 8px;
}

.work-reed p {
    margin: 0;
    padding: 0;
}

.kami {
    background-image: url(../images/工作用紙.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.spc-box {
    padding: 0.2em 0.5em;
    margin: 2em 0;
    color: #565656;
    background: #c6e5d9;
    box-shadow: 0px 0px 0px 10px #c6e5d9;
    border: dashed 2px #ffc3c3;
    border-radius: 8px;
    text-align: center;
}

.spc-box p {
    margin: 0;
    padding: 0;
}
img {
    max-width: 100%;
    height: auto;
}
.spc-box2 {
    padding: 0.2em 0.5em;
    margin: 2em 0;
    color: #565656;
    background: #c6e5d9;
    box-shadow: 0px 0px 0px 10px #c6e5d9;
    border: dashed 2px #ffc3c3;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* footer */
.foot {
    position: fixed;
    bottom: 40px;
    right: 5px;
    padding: 6px 40px;
}
.foot img {
    max-width: 120px;
 }


@media screen and (max-width: 767px) {
    header {
        padding: 10px 20px;
    }

    section {
        padding: 10px 20px;
    }
    h1 {
        font-size: 20px;
    }
  img {
        object-fit: cover;
    }
}


@media screen and (max-width: 767px) {
    #g-nav {
        position: fixed;
        background-color: #ffc3c3;
        z-index: 99999;
        width: 100%;
        height: 100vh;
        top: 0;
        right: -100%;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: 0.6s;
    }
    #g-nav.panel-active {
        right: 0;
    }
    .nav-list {
        flex-direction: column;
        align-items: center;
    }
    .nav-list a {
        font-size: 24px;
    }
    .open-btn {
        display: flex;
        gap: 6px;
        flex-direction: column;
        padding: 12px 0;
        position: relative;
        z-index: 999999;
    }
    .open-btn span {
        display: block;
        width: 40px;
        height: 4px;
        background-color: #333;
        transition: 0.6s;
    }
    .active:nth-child(1) {
        transform: translateY(10px) rotate(-45deg);
    }
    .active:nth-child(2) {
        opacity: 0;
    }
    .active:nth-child(3) {
        transform: translateY(-10px) rotate(45deg);
    }
}